﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Microsoft.Practices.Unity;
using Skynet.C2SModule.Presenters;

namespace Skynet.C2SModule.Views.CreatePublisher
{
    /// <summary>
    /// Interaction logic for CreatePublisherView.xaml
    /// </summary>
    public partial class CreatePublisherView : UserControl, ICreatePublisher
    {
        public string Title
        {
            get { return (string)GetValue(TitleProperty); }
            set { SetValue(TitleProperty, value); }
        }
        // Using a DependencyProperty as the backing store for Title.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty TitleProperty = DependencyProperty.Register("Title", typeof(string), typeof(CreatePublisherView), new UIPropertyMetadata("Create Publisher"));


        //private CreatePublisherPresenter _Presenter;
        //[Dependency]
        //public CreatePublisherPresenter Presenter
        //{
        //    get { return _Presenter; }
        //    set
        //    {
        //        _Presenter = value;
        //        _Presenter.View = this;
        //        this.DataContext = value;
        //    }
        //}       
        public CreatePublisherView()
        {
            InitializeComponent();            
        }

        private void Close_Click(object sender, RoutedEventArgs e)
        {
         //   this.Presenter.OnViewClose();
        }

        private void btnSave_Click(object sender, RoutedEventArgs e)
        {            
          //  this.Presenter.AddPublisher();  
        }

        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
          //  this.Presenter.OnViewReady();
            
        }
    }
}
